package com.dykj.fireFighting.api.fire.maintenanceplan.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;


/**
 * @Description 例行维保记录
 * @Author zly
 * @Date  2021-07-28 16:30:03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "例行维保记录")
@TableName("routine_maintenance")
public class RoutineMaintenance extends Model<RoutineMaintenance> {
	private static final long serialVersionUID = 1L;

	@TableId
	private String id;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("create_date")
	private Date createDate;
	@TableField("create_by")
	private String createBy;
	@TableField("flag_del")
	private String flagDel;
	@TableField("flag_display")
	private String flagDisplay;
	private Integer sort;
	private String remark;
	/**
	 * 维保单位
	 */
    @ApiModelProperty(value = "维保单位")
	@TableField("maintenance_dept")
	private String maintenanceDept;
    @TableField(exist = false)
	private String maintenanceDeptName;
	/**
	 * 社会单位
	 */
    @ApiModelProperty(value = "社会单位")
	@TableField("sociology_dept")
	private String sociologyDept;
    @TableField(exist = false)
    private String sociologyDeptName;
	/**
	 * 维保人员
	 */
    @ApiModelProperty(value = "维保人员")
	@TableField("maintenance_personnel")
	private String maintenancePersonnel;
    /**
     * 维保人员
     */
    @ApiModelProperty(value = "维保人员联系方式")
    @TableField("maintenance_personnel_phone")
    private String maintenancePersonnelPhone;
	/**
	 * 社会单位意见
	 */
    @ApiModelProperty(value = "社会单位意见")
	@TableField("sociology_dept_opinion")
	private String sociologyDeptOpinion;
	/**
	 * 社会单位签名
	 */
    @ApiModelProperty(value = "社会单位签名")
	@TableField("sociology_dept_sign")
	private String sociologyDeptSign;
	@TableField("file_id")
	private String fileId;
	@TableField(exist = false)
	private List<RoutineMaintenanceRecord> routineMaintenanceRecords;
	@TableField(exist = false)
	private String maintenanceDate;
    /**
     * 维保单位项目负责人
     */
    @TableField("maintenance_project_duty_man")
    private String maintenanceProjectDutyMan;
    /**
     * 社会单位项目负责人
     */
    @TableField("sociology_project_duty_man")
    private String sociologyProjectDutyMan;
    /**
     * 现场联系人
     */
    @TableField("site_contact")
    private String siteContact;
    /**
     * 现场联系人电话
     */
    @TableField("site_contact_phone")
    private String siteContactPhone;
    /**
     * 评价人
     */
    @TableField("evaluator")
    private String evaluator;
    /**
     * 评价得分
     */
    @TableField("score")
    private String score;

}
